import BasicLayout from '@/layouts/basic-layout';

const meta = {
    auth: true
};

const pre = 'realtimeData-';

export default {
    path: '/realtimeData',
    name: 'realtimeData',
    redirect: {
        name: `${pre}personSet`
    },
    meta,
    component: BasicLayout,
    children: [
        {
            path: 'index',
            name: `${pre}personSet`,
            meta: {
                ...meta,
                title: '实时数据',
                closable: false
            },
            component: () => import('@/pages/realtimeData/realtimeData')
        },
        {
            path: 'alarmFault',
            name: `${pre}alarmFault`,
            meta: {
                ...meta,
                title: '设备告警 - 故障上报',
                closable: false
            },
            component: () => import('@/pages/alarmFault/index')
        }
    ]
};
